package com.study.d1_junit;

public class StringUtil {
    public static void printNumber(String name){
        if(name==null){
            System.out.println("参数为null");
            return;
        }
        System.out.println("名字长度："+name.length());
    }
    public static  int getMaxIndex(String data){
        if(data==null){
            return -1;
        }else{
            return data.length()-1;
        }
    }
}
